<extend name="Base/common"/>
<block name="body">
    <div class="insurance">
        <div class="width1000">
            <img src="__PUBLIC__/Home/images/insurance1.png" alt="广告" class="ins_ad_img" />
            <div class="ins_tab">
                <a href="javascript:void(0);" class="f_l ins_tab_li">定制我的车险</a>
                <a href="try_count.html" class="f_l">试算我的保费</a>
            </div>
            <form action="{:U('step5')}" method="post" class="form_all" id="forms">
                <input type="hidden" name="c_order_no" value="{$c_order_no}">
                <div class="clearfix ins_select_list">
                        订单号:{$c_order_no}<br />
                        商业险应缴保费:{$n_real_prm}<br />
                        商业险保费（折前）:{$n_prm}<br />
                        交强险应缴保费:{$n_traff_real_prm}<br />
                        交强险保费（折前）:{$n_traff_prm}<br />
                        车船税:{$n_tax_real_prm}<br />
                        车船税（折前）:{$n_tax_prm}<br />
                </div>
            <volist name="kindlist" id="kind">
                <div class="clearfix ins_select_list">
                        <span>{$kind.C_KIND_CDE}</span>
                        保险金额：{$kind.N_AMT}
                        应缴保费(元):{$kind.N_PRM}
                        折前保费(元):{$kind.N_BEN_PRM}
                        座位数：{$kind.N_SEATNUM}
                </div>
            </volist>
                <div class="clearfix ins_select_list">
                        车主姓名:
                        <input type="text" name="c_drv_owner" value="{$c_drv_owner}">
                </div>
                <div class="clearfix ins_select_list">
                        证件类型:
                        <select name="c_ident_type">
                            <option value="01">身份证</option>
                            <option value="04">护照</option>
                            <option value="06">军官证</option>
                            <option value="08">其他</option>
                        </select>
                </div>
                <div class="clearfix ins_select_list">
                        证件号码:
                        <input type="text" name="c_ident_no" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        投保人姓名:
                        <input type="text" name="c_app_nme" value="{$c_app_nme}">
                </div>
                <div class="clearfix ins_select_list">
                        投保人性别:
                        <select name="c_app_sex">
                            <option value="1061">男</option>
                            <option value="1062">女</option>
                        </select>
                </div>
                <div class="clearfix ins_select_list">
                        投保人证件类型:
                        <select name="c_app_ident_type">
                            <option value="01">身份证</option>
                            <option value="04">护照</option>
                            <option value="06">军官证</option>
                            <option value="08">其他</option>
                        </select>
                </div>
                <div class="clearfix ins_select_list">
                        投保人证件号:
                        <input type="text" name="c_app_ident_no" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        投保人联系电话:
                        <input type="text" name="c_app_tel" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        投保人地址:
                        <input type="text" name="c_app_addr" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        投保人邮箱:
                        <input type="text" name="c_app_email" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        投保人邮编:
                        <input type="text" name="c_app_zipcode" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        被保险人姓名:
                        <input type="text" name="c_insrnt_nme" value="{$c_ident_no}">
                </div>
                <div class="clearfix ins_select_list">
                        被保人性别:
                        <select name="c_insrnt_sex">
                            <option value="1061">男</option>
                            <option value="1062">女</option>
                        </select>
                </div>
                <div class="clearfix ins_select_list">
                        被保险人证件类型:
                        <select name="c_insrnt_ident_type">
                            <option value="01">身份证</option>
                            <option value="04">护照</option>
                            <option value="06">军官证</option>
                            <option value="08">其他</option>
                        </select>
                </div>
                <div class="clearfix ins_select_list">
                        被保人证件号:
                        <input type="text" name="c_insrnt_ident_no" value="">
                </div>
                <div class="clearfix ins_select_list">
                        被保险人联系电话:
                        <input type="text" name="c_insrnt_tel" value="">
                </div>
                <div class="clearfix ins_select_list">
                        被保险人地址:
                        <input type="text" name="c_insrnt_addr" value="">
                </div>
                <div class="clearfix ins_select_list">
                        被保险人邮箱:
                        <input type="text" name="c_insrnt_email" value="">
                </div>
                <div class="clearfix ins_select_list">
                        被保险人邮编:
                        <input type="text" name="c_insrnt_zipcode" value="">
                </div>
                <div class="clearfix ins_select_list">
                        联系人姓名:
                        <input type="text" name="c_contact_name" value="">
                </div>
                <div class="clearfix ins_select_list">
                        联系人电话:
                        <input type="text" name="c_contact_tel" value="">
                </div>
                <div class="clearfix ins_select_list">
                        联系人邮箱:
                        <input type="text" name="c_contact_email" value="">
                </div>
                <div class="clearfix ins_select_list">
                        配送地址省代码:
                        <input type="text" name="c_delivery_province" value="">
                </div>
                <div class="clearfix ins_select_list">
                        配送地址市代码:
                        <input type="text" name="c_delivery_city" value="">
                </div>
                <div class="clearfix ins_select_list">
                        配送地址区代码:
                        <input type="text" name="c_delivery_district" value="">
                </div>
                <div class="clearfix ins_select_list">
                        配送地址:
                        <input type="text" name="c_address" value="">
                </div>
                <input type="submit" value="下一步" class="form_submit" />
            </form>
        </div>
    </div>
    </block>
<block name="script">
<script type="text/javascript" src="__PUBLIC__/Home/js/insurance.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/js/carCommen.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/js/datePicker.js"></script>
<script type="text/javascript">
    /*时间控件*/
    $(function(){
        $(".datePicker").each(function(){
            $(this).datepicker({
                format: "yyyy-mm-dd",
                todayBtn: "linked",
                language: "zh-CN",
                autoclose: true,
                todayHighlight: true
            });
        }); 
    });
</script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#forms').validate({
            rules: {
                car_type: "required",
                shortName_: "required"
            },
            messages: {
                car_type: "请选择车辆类型" ,
                shortName_: "请填写商品名称简写",
            },  
            showErrors: function(errorMap, errorList) { 
                $.each( errorList, function(i,v){
                    if(v.message!=""){ 
                        $(this.element).parent().parent().addClass('has_error');
                        $(this.element).nextAll(".help_msg").html(v.message);
                    }
                });  
            },
            /* 失去焦点时不验证 */
            onfocusout: false
        });
        $('#form1').find('input,select,textarea').on('change',function(){ 
            $(this).parent().parent().removeClass('has_error');
            $(this).nextAll(".help_msg").html("");
        });
    })
</script>
</block>
